﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;
using ZSZ.Model;

namespace ZSZ.IService
{
    public partial interface IUserService : IBaseService<User>
    {
        UserDTO GetByPhoneNum(string phoneNum);

        bool IsLocked(long id);
        bool CheckLogin(string phoneNum, string password);

        long Add(string phoneNum, string password);

        void SetUserCityId(long userId, long cityId);

        void UpdatePwd(long userId, string newPassword);

        void IncrLoginError(long id);
        void ResetLoginError(long id);


    }
}
